Skip to content

Conversation

@haribabuk113
Copy link

Fixes Or Enhances

Make sure that you've checked the boxes below before you submit PR:

  • Tests exist or have been written that cover this particular change.

@go-playground/validator-maintainers

I’ve been using this package in several projects at our company. Yesterday, while searching for a validation tag that supports alphanumeric characters and spaces for Go structs, I was unable to find an existing one. To address this, I created a regex pattern that allows alphabets, numbers, and spaces.

This pull request adds that regex-based validation tag to the package, extending its functionality for common text fields requiring alphanumeric and space support.

Summary of Changes
Added a new regex validation tag supporting alphabets, numbers, and spaces

Included documentation and tests for the new tag

@haribabuk113 haribabuk113 requested a review from a team as a code owner November 1, 2025 14:48
@coveralls
Copy link

coveralls commented Nov 1, 2025

Coverage Status

coverage: 73.734% (+0.004%) from 73.73%
when pulling a62cf8d on haribabuk113:master
into 6a38036 on go-playground:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants